package user

import (
	"yanwc.gokit/user_svc/models"
	"yanwc.gokit/user_svc/service"
)

type ManageService interface {
	//添加用户
	Add(user models.User, ctx service.Context) (*models.User, error)
	//修改用户
	Modify(name string, nickName string, ctx service.Context) (bool, error)
	//启禁用用户
	Disable(userId int, disable bool, ctx service.Context) (bool, error)
	//解冻用户状态
	Unfreeze(userId int, ctx service.Context) (bool, error)

	//Remove 删除用户
	//userId 用户编号
	//ctx 操作上下文
	Remove(userId int, ctx service.Context) (bool, error)
}
